The bitwise XOR operator (^) is a bitwise XOR on two expressions, and the following is an introduction to its specific useThe bitwise XOR operator (^) performs a bitwise XOR on two expressions. How to use: The code is as follows: result =
The bitwise XOR operator (^) performs a bitwise XOR on two expressions. How to use:
Copy Code code as follows:
result = expression1 ^ expression2
Where result is any variable.
Expression1 is any expression.
Expression2 is any
Front.
Bitwise operators are very low-level operations and are not commonly used because they are not intuitive. However, its speed is very fast, and reasonable use can achieve very good results. This article will introduce the operator-bitwise
Operator
JavaScript has assignments, comparisons, arithmetic, bits, logic, strings, and special operators. This chapter describes the operators and some information about operator precedence.Table 2.1 A concise list of all the JavaScript
Speaking of operators, basically all kinds of programming languages will be involved, the use of similar methods. Here's a simple collation of JavaScript here today.
In general, operators are still relatively much more, can be divided into the
The bitwise "XOR" Operator (^) performs bitwise XOR for two expressions. The following describes how to use the bitwise "XOR" Operator (^) is to execute bitwise XOR or for two expressions. Usage:
The Code is as follows:
Result = expression1 ^
xTable of Contents [1] Number of [2] precedence [3] binding [4] type [5] rules in front of the statementMost of the operators in JavaScript are represented by punctuation, a few are represented by keywords, their syntax is concise, and their numbers
The bitwise "XOR" Operator (^) is used to perform bitwise XOR for two expressions. The following describes how to use it.The bitwise "XOR" Operator (^) performs bitwise XOR on two expressions. Usage: the code is as follows: result = expression1 ^
Speaking of operators, basically all kinds of programming languages are involved, the use of a similar way. Here is a simple collation of JavaScript here today.In general, operators are more than the comparison, can be divided into the following
The JavaScript scripting language describes a set of operators for manipulating data values, including unary operators, Boolean operators, arithmetic operators, relational operators, ternary operators, bitwise operators, and assignment operators.An
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.